// C++ author 清晨与猫鱼
#include <iostream>
#include <string>
#include "Realize.h"

using namespace std;

int main(const int argc, const char** argv)
{	
    // 不断的获取客户
	unique_ptr<AbstractCustomer> customer1(CustomerFactory::getCustomer("Rob"));
    unique_ptr<AbstractCustomer> customer2(CustomerFactory::getCustomer("Bob"));
    unique_ptr<AbstractCustomer> customer3(CustomerFactory::getCustomer("Julie"));
    unique_ptr<AbstractCustomer> customer4(CustomerFactory::getCustomer("Laura"));

    // 获取它们的信息
    cout << customer1->getName() << endl;
    cout << customer2->getName() << endl;
    cout << customer3->getName() << endl;
    cout << customer4->getName() << endl;
}